import request from '@/utils/request';

export async function getEhsItemByPage (params: any) {
    return request('/api/device/getEhsItemByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addEhsItem (params: any) {
    return request('/api/device/addEhsItem', {
    method: 'POST',
    data: params,
  });
}

export async function updateEhsItem (params: any) {
    return request('/api/device/updateEhsItem', {
    method: 'POST',
    data: params,
  });
}

export async function delEhsItem (params: any) {
    return request('/api/device/delEhsItem', {
    method: 'POST',
    data: params,
  });
}


export async function exportEhsItem(params: any) {
    return request('/api/device/exportEhsItem', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getEhsItemByPage, addEhsItem, updateEhsItem, delEhsItem, exportEhsItem }
